package com.cloudbroker.bcs.platform.dav.middle.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.cloudbroker.bcs.common.entity.StatusUpdatable;

/**
 * 
 * @author fang
 *
 */
public class Plugs extends StatusUpdatable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long plugs_id;
	private Long plugs_type_id;
	private String link;
	private String icon;
	private String name;
	private String description;
	private String creater;
	private BigDecimal price;
	private BigDecimal discount_price;
	private Integer charge_mod;
	private Date create_time;
	private Integer plugs_status;
	private String ver;
	private String code;
	private Long sort;
	private Integer must_login;
	private String term_type;
	private Long buy_count;
	private String content_source;
	
	private String term_type_num; //只做sql查询参数
	
	public Long getPlugs_id() {
		return plugs_id;
	}
	public void setPlugs_id(Long plugs_id) {
		this.plugs_id = plugs_id;
	}
	public Long getPlugs_type_id() {
		return plugs_type_id;
	}
	public void setPlugs_type_id(Long plugs_type_id) {
		this.plugs_type_id = plugs_type_id;
	}
	public String getLink() {
		return link;
	}
	public void setLink(String link) {
		this.link = link;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getCreater() {
		return creater;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	public BigDecimal getDiscount_price() {
		return discount_price;
	}
	public void setDiscount_price(BigDecimal discount_price) {
		this.discount_price = discount_price;
	}
	
	public Integer getCharge_mod() {
		return charge_mod;
	}
	public void setCharge_mod(Integer charge_mod) {
		this.charge_mod = charge_mod;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public Integer getPlugs_status() {
		return plugs_status;
	}
	public void setPlugs_status(Integer plugs_status) {
		this.plugs_status = plugs_status;
	}
	public String getVer() {
		return ver;
	}
	public void setVer(String ver) {
		this.ver = ver;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Long getSort() {
		return sort;
	}
	public void setSort(Long sort) {
		this.sort = sort;
	}
    
    public String getTerm_type() {
        return term_type;
    }
    public void setTerm_type(String term_type) {
        this.term_type = term_type;
    }
    
    public String getTerm_type_num() {
        return term_type_num;
    }
    public void setTerm_type_num(String term_type_num) {
        this.term_type_num = term_type_num;
    }
    
    public Integer getMust_login() {
        return must_login;
    }
    public void setMust_login(Integer must_login) {
        this.must_login = must_login;
    }
    
    public Long getBuy_count() {
		return buy_count;
	}
	public void setBuy_count(Long buy_count) {
		this.buy_count = buy_count;
	}
	
	public String getContent_source() {
        return content_source;
    }
    public void setContent_source(String content_source) {
        this.content_source = content_source;
    }
    
    
    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("Plugs [plugs_id=").append(plugs_id).append(", plugs_type_id=").append(plugs_type_id)
                .append(", link=").append(link).append(", icon=").append(icon).append(", name=").append(name)
                .append(", description=").append(description).append(", creater=").append(creater)
                .append(", price=").append(price).append(", discount_price=").append(discount_price)
                .append(", charge_mod=").append(charge_mod).append(", create_time=").append(create_time)
                .append(", plugs_status=").append(plugs_status).append(", ver=").append(ver).append(", code=")
                .append(code).append(", sort=").append(sort).append(", must_login=").append(must_login)
                .append(", term_type=").append(term_type).append(", buy_count=").append(buy_count)
                .append(", content_source=").append(content_source).append(", term_type_num=")
                .append(term_type_num).append("]");
        return builder.toString();
    }

}
